import type { PageParams, PageResult } from '@/types/global'

/**
 * 首页-广告区域-小程序
 * @param distributionSite 广告区域展示位置（投放位置 投放位置，1为首页，2为分类商品页） 默认是1
 */
export const getHomeBannerAPI = (distributionSite = 1) => {return {"code":"1","msg":"操作成功","result":[
    {"id":"22","imgUrl":"/static/images/4a79180a-1a5a-4042-8a77-4db0b9c800a8.jpg","hrefUrl":"1019000","type":"1"},
    {"id":"21","imgUrl":"/static/images/dfc11bb0-4af5-4e9b-9458-99f615cc685a.jpg","hrefUrl":"1005000","type":"1"},
    {"id":"23","imgUrl":"/static/images/1ba86bcc-ae71-42a3-bc3e-37b662f7f07e.jpg","hrefUrl":"1013001","type":"1"},
    {"id":"24","imgUrl":"/static/images/6d202d8e-bb47-4f92-9523-f32ab65754f4.jpg","hrefUrl":"1013001","type":"1"},
    {"id":"25","imgUrl":"/static/images/e83efb1b-309c-46f7-98a3-f1fefa694338.jpg","hrefUrl":"1005000","type":"1"}]
}}

export const getHomeCategoryAPI = () => {
  
  return {
    "code": "1",
    "msg": "操作成功",
    "result": [
      {
        "id": "1005000",
        "name": "居家",
        "icon": "/static/images/201516e3-25d0-48f5-bcee-7f0cafb14176.png"
      },
      {
        "id": "1005002",
        "name": "锦鲤",
        "icon": "/static/images/cf82e5b4-bf1b-4c68-aa86-96f66e8e5282.png"
      },
      {
        "id": "1010000",
        "name": "服饰",
        "icon": "/static/images/33e1f5de-0fdb-4cfa-9ba9-781233024b53.png"
      },
      {
        "id": "1011000",
        "name": "母婴",
        "icon": "/static/images/b514a526-4010-4ce8-8cb9-757ed382f84a.png"
      },
      {
        "id": "1013001",
        "name": "个护",
        "icon": "/static/images/d38a73b8-cd03-48aa-a60b-e7c4e16667ed.png"
      },
      {
        "id": "1019000",
        "name": "严选",
        "icon": "/static/images/4b02f01f-a365-4b6c-9f7a-8b0f591dda02.png"
      },
      {
        "id": "1043000",
        "name": "数码",
        "icon": "/static/images/9660870d-6a59-4624-8064-b3a8cbf50d5c.png"
      },
      {
        "id": "109243029",
        "name": "运动",
        "icon": "/static/images/7d19752c-baff-49b6-bd02-5ece1d729214.png"
      },
      {
        "id": "19999999",
        "name": "杂项",
        "icon": "/static/images/4ff20b9e-8150-4bd3-87a3-0cd6766938dd.png"
      },
      {
        "id": "999999",
        "name": "品牌",
        "icon": "/static/images/d9ee4919-0d2c-4383-9916-2dd25f12610c.png"
      }
    ]
  }
}
  /**
 * 首页-热门推荐-小程序
 */
export const getHomeHotAPI = () => { return {
    "code": "1",
    "msg": "操作成功",
    "result": [
      {
        "id": "1",
        "pictures": [
          "/static/images/cedfb4827ca489e574abeb5d19ce21e5.jpg",
          "/static/images/bcb8efeee3977d417b961c1eba4584a5.jpg"
        ],
        "title": "特惠推荐",
        "alt": "它们最实惠",
        "target": "10050",
        "type": 1
      },
      {
        "id": "2",
        "pictures": [
          "/static/images/cec39a9588e8a2adc88447080b4462d2.png",
          "/static/images/7a5ffe313fe5671709d5a9826f5a83a2.jpg"
        ],
        "title": "爆款推荐",
        "alt": "它们最受欢迎",
        "target": "10050",
        "type": 2
      },
      {
        "id": "3",
        "pictures": [
          "/static/images/c74e739833078c887a7d275c1caf81b5.png",
          "/static/images/e06457f58b2cec3578c539c7b3cbfebe.png"
        ],
        "title": "一站买全",
        "alt": "精心优选",
        "target": "10050",
        "type": 3
      },
      {
        "id": "4",
        "pictures": [
          "/static/images/05f79c7976b21c0aba772feef5701c80.png",
          "/static/images/d97cd8558999713868afa029f338d0a4.png"
        ],
        "title": "领券中心",
        "alt": "超值优惠券",
        "target": "10050",
        "type": 4
      }
    ]
  } }
/**
 * 猜你喜欢-小程序
 */
export const getHomeGoodsGuessLikeAPI =  (data?: PageParams) => { return {
  "code": "1",
  "msg": "操作成功",
  "result": {
    "counts": 10,
    "pageSize": data?.pageSize,
    "pages": 1,
    "page": data?.page,
    "items": [
      {
        "id": "1293000",
        "name": "北海道风味大虾面61克*6杯",
        "desc": "看得见的大只虾仁，吃得到的日式风味",
        "price": "39.00",
        "picture": "/static/images/53992e4eb8ec385406038bf307e42ef7.jpg",
        "orderNum": 26
      },
      {
        "id": "1548007",
        "name": "川味牛肉辣椒酱190克",
        "desc": "辣香麻爽，地道川渝风味",
        "price": "38.00",
        "picture": "/static/images/0e1681ab3a4a5aaf185f0bb123f07f99.jpg",
        "orderNum": 52
      },
      {
        "id": "3394027",
        "name": "平台有道翻译王2.0pro",
        "desc": "差旅学习必备，离线翻译神器",
        "price": "998.00",
        "picture": "/static/images/f4d16ea8149ae59cce203a73a61d3d50.png",
        "orderNum": 12
      },
      {
        "id": "3990343",
        "name": "【囤货装】日本橙油精华去油污泡沫3瓶装",
        "desc": "强力除油污，萃取橙油精华",
        "price": "67.50",
        "picture": "/static/images/188e05584a056b0e2f17e8c568da8c00.png",
        "orderNum": 15
      },
      {
        "id": "1691024",
        "name": "地道卤香好味道，桂林鲜米粉245克*6盒",
        "desc": "无人工添加防腐剂，鲜嫩爽滑",
        "price": "69.00",
        "picture": "/static/images/26d71d6eb4c00ed727ad9f54ae4ce553.png",
        "orderNum": 62
      },
      {
        "id": "1108007",
        "name": "洗碗不伤手。45天传统手工茶籽薄荷洗碗皂",
        "desc": "取自天然茶籽粉，去污不伤手",
        "price": "19.90",
        "picture": "/static/images/894ece3f578af86ee5d553daa5268f5a.png",
        "orderNum": 321
      },
      {
        "id": "3986121",
        "name": "艾灸理疗随时随地，灸疗装置8头/12头",
        "desc": "哪里不适灸哪里，全身都可灸",
        "price": "99.00",
        "picture": "/static/images/941abaee58a88cb104228fe2c4cfdeb1.png",
        "orderNum": 18
      },
      {
        "id": "1406008",
        "name": "平台智造小方盒智能插线板-Pro版",
        "desc": "内外兼修的充电利器，以一抵五，差旅标配",
        "price": "79.00",
        "picture": "/static/images/a0d701292c4ca153e1800be83c4a7178.png",
        "orderNum": 22
      },
      {
        "id": "3828009",
        "name": "女式柔软牛反绒休闲乐福鞋",
        "desc": "轻松穿脱，畅想春日自由",
        "price": "195.00",
        "picture": "/static/images/8c22451f7841aaa07f4525e6c49ad098.png",
        "orderNum": 366
      },
      {
        "id": "4017718",
        "name": "油污克星Mootaa重油污清洁剂",
        "desc": "一喷快速溶解油污",
        "price": "49.00",
        "picture": "/static/images/53a1579ead54c61a9b296d20c78a67ff.jpg",
        "orderNum": 1972
      }
    ]
  }
} }